package com.lp.order.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

/**
 * @author LIPENGAK
 * @Description: 类描述
 * @date 2018-10-30 16:42
 */
//@Component
public class RestTemplateConfig {

    @Bean
    @LoadBalanced
    public RestTemplate  restTemplate(){
        return  new RestTemplate();
    }

}
